/**
 * ISWE : Recipe Master
 * Created on: 11/08/2009
 *
 * Copyright (c) 2009 ISWE / Rafael Almeida.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of RNA
 * ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sun.
 */
 package br.com.iswe.recipemaster.controller.security;

import br.com.iswe.core.web.util.BasicConverterLocator;

/**
 * ConverterLocator, e responsavel por localizar os converters da aplicacao.
 * 
 * @author Rafael Almeida.
 * @version $Revision: 1.1 $ $Date: 2009/07/17 14:50:49 11/08/2009 17:00:00 $ 
 *
 *
 */
public class ConverterLocatorImpl extends BasicConverterLocator {

	public static final String SPRING_NAME = "converterLocator";

	public ConverterLocatorImpl(){
		//Popula o map com todos os converters conhecidos
		knowConverters.put("br.com.iswe.recipemaster.entities.security.RoleType", br.com.iswe.recipemaster.controller.security.RoleTypeControllerImpl.SPRING_NAME);
		knowConverters.put("br.com.iswe.recipemaster.entities.security.Role", br.com.iswe.recipemaster.controller.security.RoleControllerImpl.SPRING_NAME);
		knowConverters.put("br.com.iswe.recipemaster.entities.security.RoleGroupType", br.com.iswe.recipemaster.controller.security.RoleGroupTypeControllerImpl.SPRING_NAME);
		knowConverters.put("br.com.iswe.recipemaster.entities.security.RoleGroup", br.com.iswe.recipemaster.controller.security.RoleGroupControllerImpl.SPRING_NAME);
		knowConverters.put("br.com.iswe.recipemaster.entities.security.User", br.com.iswe.recipemaster.controller.security.UserControllerImpl.SPRING_NAME);
		knowConverters.put("br.com.iswe.recipemaster.entities.core.Recipe", br.com.iswe.recipemaster.controller.core.RecipeControllerImpl.SPRING_NAME);
		knowConverters.put("br.com.iswe.recipemaster.entities.core.Ingredient", br.com.iswe.recipemaster.controller.core.IngredientControllerImpl.SPRING_NAME);
	}
}